import service from '../index'
/* 获取轮播图 */
export const getBanner = () => {
    return service({
        method: 'GET',
        url: '/banner?type=2'
    })
}
/* 获取推荐歌单 */
export const getRecommendList = () => {
    return service({
        method: 'GET',
        url: '/personalized?limit=10'
    })
}
/* 关键词搜索 */
export const keyWordSearch = (word: string, type: number) => {
    return service({
        method: 'GET',
        url: `/search?keywords=${word}&type=${type}&limit=20`
    })
}
/* 获取mv地址 */
export const getVideoUrl = (id: number) => {
    return service({
        method: 'GET',
        url: `/mv/url?id=${id}`
    })
}
/* 获取推荐搜索 */
export const getHotSearch = () => {
    return service({
        method: "GET",
        url: `/search/hot`
    })
}
/* 获取热搜榜 */
export const getHotSearchList = () => {
    return service({
        method: "GET",
        url: '/search/hot/detail'
    })
}
/* 获取排行榜id信息 */
export const getTopIdList = () => {
    return service({
        method: "GET",
        url: `/toplist`
    })
}
/* 获取排行榜详细信息 */
export const getTopList = (idx: number) => {
    return service({
        method: "GET",
        url: `/top/list?id=${idx}`
    })
}
